package com.foreknow.dao;

import com.foreknow.bean.User;

/**
 * 接口作用：对 User进行操作
 */
public interface UserDao {

    /**
     * 添加用户
     * @param user
     * @return
     */
    public boolean addUser(User user) throws Exception;

    /**
     * 根据id删除用户
     * @param uid
     * @return
     */
    public boolean deleteById(String uid) throws Exception;

    /**
     * 查询所有用户信息
     * @return
     */
    public User[] getQueryAll() throws Exception;

    /**
     * 根
     * 根据id查询用户信息
     * @param uid
     * @return
     */
    public User getQueryById(String uid) throws Exception;

}












